﻿using System;
namespace zhangmenren.Models
{
    /// <summary>
    /// 订单在支付成功后需要在Census表添加记录
    /// </summary>
    public class OrderEntity
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        /// <value>The order identifier.</value>
        public string OrderId { get; set; }

        /// <summary>
        /// 用户标识
        /// </summary>
        /// <value>The user identifier.</value>
        public int UserId { get; set; }

        /// <summary>
        /// 作品标识
        /// </summary>
        /// <value>The work identifier.</value>
        public int WorkId { get; set; }

        /// <summary>
        /// 作品价格
        /// </summary>
        /// <value>The price.</value>
        public decimal Price { get; set; }

        /// <summary>
        /// 作品标题
        /// </summary>
        /// <value>The work title.</value>
        public string WorkTitle { get; set; }

		/// <summary>
		/// 支付类型 0 微信  1 支付宝
		/// </summary>
		/// <value>The work title.</value>
		public int PayType { get; set; }

		/// <summary>
		/// 购买数量  基本为1
		/// </summary>
		/// <value>The number.</value>
		public int Num { get; set; }

        /// <summary>
        /// 状态  0未支付   1已支付
        /// </summary>
        /// <value>The state.</value>
        public int State { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        /// <value>The add dt.</value>
        public DateTime? AddDT { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        /// <value>The pay dt.</value>
        public DateTime? PayDT { get; set; }

    }
}
